package com.ruoyi.spider.spiderConfig.processor;

import com.ruoyi.spider.domain.SpiderArticle;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * @author xgt(小光头)
 * @version 1.0
 * @date 2021-1-16 20:13
 */
public class XiaoDaoPipeline implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {


        SpiderArticle spiderArticle = resultItems.get("spiderArticle");
        System.out.println(spiderArticle);
    }
}
